import http from '../util/request.js'

export default {
    captcha:(obj)=>{
        return http({
            url:'/api/login/captcha',
            method:'get'
        });
    },
    login:(obj)=>{
        return http({
            url:'/api/login/dologin',
            method:'post',
            //表单参数
            params:obj
        });
    },
    logininfo:()=>{
        return http({
            url:'/api/login/logininfo',
            method:'get'
        });
    },
    sendEmailCode: (obj) => {
        return http({
            url: '/api/login/sendEmailCode',
            method: 'post',
            data: obj,
            headers: {
                'Content-Type': 'application/json'
            }
        });
    },

    resetPassword: (obj) => {
        return http({
            url: '/api/login/resetPassword',
            method: 'post',
            data: obj,
            headers: {
                'Content-Type': 'application/json'
            }
        });
    }
}